package com.myboot.demo.dao.mapper;

import com.myboot.demo.entity.ProductCategory;
import com.myboot.demo.entity.ProductInfo;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * @Author: 韦溜溜
 * @Description: Mapper测试
 * @Date: Create in 20:52 2019/3/12
 */
public interface MybatisMapper {

    @Select("select *from product_category ")
    @Results({
            @Result(property = "categoryId", column = "category_id"),
            @Result(property = "categoryName", column = "category_name"),
            @Result(property = "categoryType", column = "category_type")
    }
    )
    List<ProductCategory> selectAllCategory();

}
